<template>
    <div class="header-top">
        <span class="glyphicon glyphicon-chevron-left"></span>
        <span class="header-title text-center">新建案</span>
        <div class="user text-center">
            <a href="#" class="avatar">
                <span class="glyphicon glyphicon-user"></span>
                <p>我的</p>
            </a>
            <a href="#" class="download">
                <span class="glyphicon glyphicon-download-alt"></span>
                <p>下载</p>
            </a>
        </div>
    </div>
</template>

<script>
    export default{
        name: 'headerTop'
    }
</script>

<style scoped>
    .header-top{
        display: flex;
        height: .8rem;
        background-color: #2478d2;
        width: 100%;
    }
    .header-title{
        font-size: .32rem;
        line-height: .8rem;
        color: white;
        width: calc( 100% - 1.3rem );
    }
    .glyphicon-chevron-left{
        color: white;
        font-size: .5rem;
        line-height: .8rem;
        margin-left: .2rem;
        vertical-align: middle;
    }
    .glyphicon-user, .glyphicon-download-alt{
        font-size: 0.25rem;
    }
    .user{
        display: flex;
        justify-content: center;
        align-items: center;   

        margin-right: .15rem;
    }
    .user p{
        margin: 0;
        font-size: .22rem;
    }
    .user a{
        text-decoration: none;
        width: .6rem;
    }
    a:link, a:visited, a:hover{
        color: white;
    }
    .download{
        margin-left: .1rem;
    }
</style>
